package ace.module.captcha.sms.api;

import ace.cmp.core.model.R;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;

/**
 * @author caspar
 * @date 2023/3/17 15:49 sms验证码公开服务
 */
public interface CaptchaSmsOpenApi {

  /**
   * 发送短信验证码
   *
   * @param captchaSmsAppId 短信验证appid
   * @param phoneNumber     手机号码
   * @return code=0 is success
   */
  R<Void> send(@Valid @NotNull Long captchaSmsAppId, @Valid @NotNull String phoneNumber);
}
